Skip to content

Feature/cstackex 251: New pool type for Netapp iscsi usecase - #95

Open
piyush5netapp wants to merge 7 commits into
mainfrom
feature/CSTACKEX-251
Open

Feature/cstackex 251: New pool type for Netapp iscsi usecase#95
piyush5netapp wants to merge 7 commits into
mainfrom
feature/CSTACKEX-251

Conversation

@piyush5netapp

@piyush5netapp piyush5netapp commented Aug 21, 2026

Copy link
Copy Markdown

Description

This PR...

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to change)
  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Enhancement (improves an existing feature and functionality)
  • Cleanup (Code refactoring and cleanup, that may add test cases)
  • Build/CI
  • Test (unit or integration test code)

Feature/Enhancement Scale or Bug Severity

Feature/Enhancement Scale

  • Major
  • Minor

Bug Severity

  • BLOCKER
  • Critical
  • Major
  • Minor
  • Trivial

Screenshots (if appropriate):

image image image

How Has This Been Tested?

Automation has been run

TEST SUMMARY

[iscsi_workflow] iSCSI pool lifecycle
PASS test_01_create_primary_storage_pool
PASS test_02_disable_storage_pool
PASS test_03_enable_storage_pool
PASS test_04_enter_maintenance_mode
PASS test_05_cancel_maintenance_mode
PASS test_06_enter_maintenance_and_delete_pool
PASS test_07_create_volume_on_pool
PASS test_08_delete_volume_and_pool

[iscsi_with_volumes] iSCSI pool with volumes
PASS test_01_create_pool_and_volume
PASS test_02_disable_pool_volume_survives
PASS test_03_enable_pool_volume_intact
PASS test_04_enter_maintenance_volume_present
PASS test_05_cancel_maintenance_volume_present
PASS test_06_forced_false_delete_rejected
PASS test_07_delete_volume_and_force_delete_pool

[iscsi_volume] iSCSI volume lifecycle
PASS test_01_create_pool_and_volume
PASS test_02_delete_volume
PASS test_03_recreate_volume_for_delete_tests
PASS test_04_forced_false_delete_with_volume_fails
PASS test_05_delete_volume_and_force_delete_pool

[iscsi_zone_pool] iSCSI zone-scoped pool
PASS test_01_create_zone_scoped_pool
PASS test_02_disable_zone_scoped_pool
PASS test_03_enable_zone_scoped_pool
PASS test_04_delete_zone_scoped_pool

[iscsi_vm_workflow] iSCSI VM volume workflow
PASS test_01_create_iscsi_pool
PASS test_02_create_ontap_data_volume
PASS test_03_deploy_vm
PASS test_04_attach_volume_to_vm
PASS test_05_stop_vm_lun_unmapped
PASS test_06_start_vm_lun_remapped
PASS test_07_detach_volume_from_vm
PASS test_08_destroy_vm_and_cleanup

================================================================
TOTAL: 32 passed, 0 failed, 0 skipped (32 tests)

How did you try to break this feature and the system with this change?

@piyush5netapp

Copy link
Copy Markdown
Author

iscsiAdmStorageAdapter ONTAP relevant code will also be pulled into ontapiSCSIAdapter in next commit.

StorPool(true, true, EncryptionSupport.Hypervisor),
FiberChannel(true, true, EncryptionSupport.Unsupported); // Fiber Channel Pool for KVM hypervisors is used to find the volume by WWN value (/dev/disk/by-id/wwn-<wwnvalue>)
FiberChannel(true, true, EncryptionSupport.Unsupported), // Fiber Channel Pool for KVM hypervisors is used to find the volume by WWN value (/dev/disk/by-id/wwn-<wwnvalue>)
OntapiSCSI(true, false, EncryptionSupport.Unsupported); // NetApp ONTAP iSCSI: one FlexVol per pool, one LUN per volume

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's not have this comment 'one FlexVol per pool'? As this is bound to change

* discovers adaptors by a Reflections scan of that package alone, and an unregistered type silently
* falls back to {@link LibvirtStorageAdaptor} rather than failing at startup.
*/
public class OntapIscsiStorageAdaptor extends IscsiAdmStorageAdaptor {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we planning on changing this to 'implements' with our custom code in the near future?

!(imageFormat == ImageFormat.RAW && (StoragePoolType.PowerFlex == poolType ||
StoragePoolType.FiberChannel == poolType))) {
throw new CloudRuntimeException(String.format("Only the following image types are currently supported: %s, %s, %s, %s (for PowerFlex and FiberChannel)",
StoragePoolType.FiberChannel == poolType || StoragePoolType.OntapiSCSI == poolType))) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like this rejects 'iSCSI' pool type also, so, if we did not need this before, do we need this now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants